﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using TarreOA.TarreOAModels;

namespace TarreOA.TarreOABLL
{
    public class UserTalkContent
    {
        private static UserTalkContent utc;
        private Hashtable talkContents = new Hashtable();
        private Hashtable talkUsers = new Hashtable();

        private UserTalkContent()
        {
        }

        //单态模式的类加载器
        public static UserTalkContent instance()
        {
            if (utc == null)
            {
                utc = new UserTalkContent();
            }
            return utc;
        }

        public void AddToTalkContents(Object key, Object value)
        {
            this.talkContents.Add(key, value);
        }

        public void AddToTalkUsers(Object key, Object value)
        {
            this.talkUsers.Add(key, value);
        }

        public Hashtable TalkContents
        {
            get { return this.talkContents; }
        }

        public Hashtable TalkUsers
        {
            get { return this.talkUsers; }
        }
    }
}
